import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/yunkeji";

// 查询用户列表
export function listBanner(query) {
  return request({
    url: '/system/banner/list',
    method: 'get',
    params: query
  })
}

// 新增用户
export function addBanner(data) {
  return request({
    url: '/system/banner',
    method: 'post',
    data: data
  })
}

// 修改用户
export function updateBanner(data) {
  return request({
    url: '/system/banner',
    method: 'put',
    data: data
  })
}

// 删除用户
export function delBanner(id) {
  return request({
    url: '/system/banner/' + id,
    method: 'delete'
  })
}

// 用户状态修改
export function enable(id) {
  return request({
    url: '/system/banner/' + id,
    method: 'put'
  })
}
